function pop_window(obj){
    if(obj.width == undefined){
        obj.width = 1200;
    }
    switch (obj.type){
        case 1:
            layer.open({
                type: obj.type,
                title:obj.title,
                moveOut:true,       //默认可以移出
                shadeClose: true,
                area: [obj.width+'px', '680px'],  //默认高宽为这么多
                /* zIndex:900,*/
                shade: 0.5,
                maxmin: false, //开启最大化最小化按钮
                content: $('#'+obj.id)

            });
            break;
        case 2:
            layer.open({
                type: obj.type,
                title:obj.title,
                /* moveOut:true,*/
                closeBtn:0,
                shadeClose: true,
                offset:['100px','500px'],
                area:['800px','500px'],
                shade: 0.5,
                maxmin: false, //开启最大化最小化按钮
                content: [''+obj.src,'no']

            });
            break;
        default:alert("你弄啥呢，我都找不到");
    }
    }



